package com.zzyl.dto;

import com.zzyl.base.BaseDto;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class NursingProjectPlanDto extends BaseDto {
    private Long planId;
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    @NotBlank(message = "执行时间不能为空")
    private String executeTime;

    @NotNull(message = "执行周期不能为空")
    private Integer executeCycle;

    @NotNull(message = "执行频次不能为空")
    @Min(value = 1, message = "执行频次不能小于1")
    @Max(value = 7, message = "执行频次不能大于7")
    private Integer executeFrequency;
}